package com.boctech.yxt.commonsutils.exception;

// 异常类型枚举类，定义三种异常类型，具有不同的状态码
public enum  ExceptionType {

    BAD_REQUEST(400),
    UNAUTHORIZED(401),
    FORBIDDEN(403),
    NOT_FOUND(404),
    INTERNAL_SERVER_ERROR(500);

    private int code;

    ExceptionType(int code){
        this.code = code;
    }

    public int getCode(){
        return code;
    }
}
